#ifndef CCHANGEBACKGROUND_H_
#define CCHANGEBACKGROUND_H_
#include"CTextureManager.h"
#include "CShape.h"

struct Interpolate
{
	float CurrentAlpha;
	float NextAlpha;

};
class CChangeBackground
{
	enum BackGround{Gothic = 1, MidEvil= 2, Egyptian=3};
	
	int m_nCurrentBackGround;

	int m_nNextBackGround; 

	Interpolate interp;
	
	CShape shape;
	CShape backShape;
	Texture * GothTex;
	Texture * MidEvTex;
	Texture * EgyptTex;

	Texture *WindowOne, *WindowTwo;
	CShape WindowQuad1, WindowQuad2, WindowQuad3;
	static CChangeBackground Instance;
public:
	CChangeBackground();

	static CChangeBackground *GetInstance(){return &Instance;}
	void IncrementBackground() { m_nNextBackGround--; }
	void LoadAllBackGround();
	void Transition(float fElapsedTime);
	void Render();

};

#endif